package org.xbzheng.jpa.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.xbzheng.jpa.bean.User;

import java.util.List;
import java.util.Optional;

/**
 * Created by xbzheng on 2018/7/10.
 */
public interface UserRepository extends JpaRepository<User, Long> {
    Optional<List<User>> findByUsername(String username);
}
